<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>课程详情</title>
  <style>
    .course-info { margin: 20px; padding: 20px; border: 1px solid #ddd; border-radius: 5px; }
    .course-info p { margin: 10px 0; }
    .btn-back { padding: 8px 15px; background-color: #f44336; color: white; text-decoration: none; border-radius: 4px; }
  </style>
</head>
<body>
<h2>课程详情</h2>
<div class="course-info">
  <p><strong>课程ID:</strong> ${course.courseid}</p>
  <p><strong>课程代码:</strong> ${course.course}</p>
  <p><strong>课程名称:</strong> ${course.name}</p>
  <p><strong>教师ID:</strong> ${course.teacher_id}</p>
  <p><strong>学分:</strong> ${course.credit}</p>
</div>
<a href="${pageContext.request.contextPath}/course/list" class="btn-back">返回列表</a>
</body>
</html>